<?php
namespace App\Service;

use App\Model\BmrUserModel;

class UserService {

    /**修改用户性别
     * @param BmrUserModel $userModel
     * @param int $sex
     * @return bool
     */
    public function updateSex(BmrUserModel &$userModel, int $sex) {
        $userModel->sex = $sex;
        return $userModel->save();
    }
}